package problems;

import lib.MathLib;

public class Euler010 extends AbstractEuler {

	@Override
	public Number calculate() {
		long answer = 0;
		for (int i = 2; i < 2000000; i++) {
			if (MathLib.isPrime(i)) {
				answer += i;
			}
		}
			
		return answer;
	}

	@Override
	protected Number getCorrectAnswer() {
		return 142913828922L;
	}

}
